// 引入 request 文件
import request from '@/utils/request'
import type { UserParams } from "./types"
 
// 分页查询列表
export const userList = (params?: UserParams) => {
	return request({
		url: '/point/enterprise/list',
		method: 'get',
		data: params || {}
	})
}

//单个数据详情
export const enterpriseItem = (enterpriseId: string) => {
	return request({
		url: `/point/enterprise/${enterpriseId}`,
		method: 'get'
	})
}

//删除
export const deleteUserItem = (enterpriseId: string) => {
	return request({
		url: `/point/enterprise/${enterpriseId}`,
		method: 'delete'
	})
}
